#ifndef __TIMER1_UTILS_H__
#define __TIMER1_UTILS_H__

void Timer1_Init(unsigned int us, bit isCounterMode);
unsigned int Timer1_Caculate_TH_TL_by_Time(unsigned int Count_us);
unsigned int Timer1_Caculate_TH_TL_by_Frequency(unsigned long Frequency);
void Timer1_reset_TH_TL();
void Timer1_set_TH_TL_Value(unsigned int value);
unsigned int Timer1_getCounter();
float Timer1_getCounter_Time();
void Timer1_setOnTickListener(bit (*Timer1_onTick)());
void Timer1_setOnTickListener_Exact(bit autoResetTH_TL, void (*Timer1_onTick)());
void Timer1_start();
void Timer1_stop();
void Timer1_pause(unsigned char ms);

#endif // !__TIMER1_UTILS_H__